Optimal. Leaf size=45 \[ \frac {(a+b) \log \left (a \cos ^2(e+f x)+b\right )}{2 a b f}-\frac {\log (\cos (e+f x))}{b f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {4138, 446, 72} \[ \frac {(a+b) \log \left (a \cos ^2(e+f x)+b\right )}{2 a b f}-\frac {\log (\cos (e+f x))}{b f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 72
Rule 446
Rule 4138
Rubi steps
\begin {align*} \int \frac {\tan ^3(e+f x)}{a+b \sec ^2(e+f x)} \, dx &=-\frac {\operatorname {Subst}\left (\int \frac {1-x^2}{x \left (b+a x^2\right )} \, dx,x,\cos (e+f x)\right )}{f}\\ &=-\frac {\operatorname {Subst}\left (\int \frac {1-x}{x (b+a x)} \, dx,x,\cos ^2(e+f x)\right )}{2 f}\\ &=-\frac {\operatorname {Subst}\left (\int \left (\frac {1}{b x}+\frac {-a-b}{b (b+a x)}\right ) \, dx,x,\cos ^2(e+f x)\right )}{2 f}\\ &=-\frac {\log (\cos (e+f x))}{b f}+\frac {(a+b) \log \left (b+a \cos ^2(e+f x)\right )}{2 a b f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.10, size = 41, normalized size = 0.91 \[ \frac {(a+b) \log \left (a \cos ^2(e+f x)+b\right )-2 a \log (\cos (e+f x))}{2 a b f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.70, size = 41, normalized size = 0.91 \[ \frac {{\left (a + b\right )} \log \left (a \cos \left (f x + e\right )^{2} + b\right ) - 2 \, a \log \left (-\cos \left (f x + e\right )\right )}{2 \, a b f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.64, size = 59, normalized size = 1.31 \[ \frac {\ln \left (b +a \left (\cos ^{2}\left (f x +e \right )\right )\right )}{2 f b}+\frac {\ln \left (b +a \left (\cos ^{2}\left (f x +e \right )\right )\right )}{2 a f}-\frac {\ln \left (\cos \left (f x +e \right )\right )}{b f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.36, size = 50, normalized size = 1.11 \[ \frac {\frac {{\left (a + b\right )} \log \left (a \sin \left (f x + e\right )^{2} - a - b\right )}{a b} - \frac {\log \left (\sin \left (f x + e\right )^{2} - 1\right )}{b}}{2 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.49, size = 64, normalized size = 1.42 \[ \frac {\ln \left (b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a+b\right )}{2\,a\,f}+\frac {\ln \left (b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a+b\right )}{2\,b\,f}-\frac {\ln \left ({\mathrm {tan}\left (e+f\,x\right )}^2+1\right )}{2\,a\,f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\tan ^{3}{\left (e + f x \right )}}{a + b \sec ^{2}{\left (e + f x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________